package com.by.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author LittleDesire
 * @description
 * @date 2022-03-28 周一 15:18
 * @since 17
 */
@RestController
public class app {

    @RequestMapping
    public ModelAndView index(ModelAndView mv) {
        mv.setViewName("index");
        mv.addObject("name", "<span style='color:red;'>nihao战三</span>");
        mv.addObject("addrs", new String[]{"shanghai", "背景", "beijing"});
        return mv;
    }
}
